# 生成一个大乐透彩票投注
# 大乐透号码分为红区和蓝区
# 红区5个数字01-35 不重复
# 蓝区2个数字01-08 不重复
import random

# 1.从红区随机获取5个数字
redlist = set()
bluelist = set()
while len(redlist) < 5:
    num = random.randint(1,35)
    redlist.add(num)
# 2.从蓝区获取两个数字
while len(bluelist) < 2:
    num2 = random.randint(1,8)
    bluelist.add(num2)
print(redlist,bluelist)
# 合并两个集合,先转为有序列表
redlist = list(redlist)
bluelist = list(bluelist)
alist = redlist + bluelist
print(alist)